package com.ch.ebusiness.repository.admin;

import com.ch.ebusiness.entity.BUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserAndOrderAndOutRepository {
    List<Map<String, Object>> selectUserByPage(@Param("startIndex") int startIndex, @Param("perPageSize") int perPageSize);
    
    int selectAllUser();
    
    List<Map<String, Object>> selectCartUser(int id);
    
    List<Map<String, Object>> selectOrderUser(int id);
    
    int deleteUser(int id);
    
    int selectAllOrder();
    
    List<Map<String, Object>> selectOrderByPage(@Param("startIndex") int startIndex, @Param("perPageSize") int perPageSize);
    
    Integer updateUser(BUser bUser);
    
    List<Map<String, Object>> selectOrderGoods(int id);
    
    void deleteOrder(int id);
}
